package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_identity
 * @author 
 */
public class SesUserIdentity implements Serializable {
    /**
     * ID,主键PK
     */
    private Long useridentityid;

    /**
     * 用户身份表ID
     */
    private Long typeid;

    /**
     * 银行卡号
     */
    private String useridentitybankcard;

    /**
     * 真实姓名
     */
    private String useridentityrealname;

    /**
     * 是否为管理员:0.不是(默认),1.是
     */
    private String useridentityisadmin;

    private static final long serialVersionUID = 1L;

    public Long getUseridentityid() {
        return useridentityid;
    }

    public void setUseridentityid(Long useridentityid) {
        this.useridentityid = useridentityid;
    }

    public Long getTypeid() {
        return typeid;
    }

    public void setTypeid(Long typeid) {
        this.typeid = typeid;
    }

    public String getUseridentitybankcard() {
        return useridentitybankcard;
    }

    public void setUseridentitybankcard(String useridentitybankcard) {
        this.useridentitybankcard = useridentitybankcard;
    }

    public String getUseridentityrealname() {
        return useridentityrealname;
    }

    public void setUseridentityrealname(String useridentityrealname) {
        this.useridentityrealname = useridentityrealname;
    }

    public String getUseridentityisadmin() {
        return useridentityisadmin;
    }

    public void setUseridentityisadmin(String useridentityisadmin) {
        this.useridentityisadmin = useridentityisadmin;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserIdentity other = (SesUserIdentity) that;
        return (this.getUseridentityid() == null ? other.getUseridentityid() == null : this.getUseridentityid().equals(other.getUseridentityid()))
            && (this.getTypeid() == null ? other.getTypeid() == null : this.getTypeid().equals(other.getTypeid()))
            && (this.getUseridentitybankcard() == null ? other.getUseridentitybankcard() == null : this.getUseridentitybankcard().equals(other.getUseridentitybankcard()))
            && (this.getUseridentityrealname() == null ? other.getUseridentityrealname() == null : this.getUseridentityrealname().equals(other.getUseridentityrealname()))
            && (this.getUseridentityisadmin() == null ? other.getUseridentityisadmin() == null : this.getUseridentityisadmin().equals(other.getUseridentityisadmin()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUseridentityid() == null) ? 0 : getUseridentityid().hashCode());
        result = prime * result + ((getTypeid() == null) ? 0 : getTypeid().hashCode());
        result = prime * result + ((getUseridentitybankcard() == null) ? 0 : getUseridentitybankcard().hashCode());
        result = prime * result + ((getUseridentityrealname() == null) ? 0 : getUseridentityrealname().hashCode());
        result = prime * result + ((getUseridentityisadmin() == null) ? 0 : getUseridentityisadmin().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", useridentityid=").append(useridentityid);
        sb.append(", typeid=").append(typeid);
        sb.append(", useridentitybankcard=").append(useridentitybankcard);
        sb.append(", useridentityrealname=").append(useridentityrealname);
        sb.append(", useridentityisadmin=").append(useridentityisadmin);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}